﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.LightSwitch;
namespace EmployeeManager
{
    public partial class ApplicationDataService
    {
        partial void LoggedInWorker_PreprocessQuery(ref IQueryable<Worker> query)
        {
            string userName = Application.User.Name == "TestUser" ? "GTO001" : Application.User.Name;
            query.Where(w => w.WorkerCode == Application.User.Name);
        }
    }
}
